# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=viewnior
_pkgname=Viewnior
pkgver=1.7
pkgrel=2
pkgdesc="A fast and simple image viewer"
url="http://siyanpanayotov.com/project/viewnior"
arch="all"
license="GPL-3.0"
depends=""
makedepends="gnome-common meson ninja gtk+2.0-dev exiv2-dev desktop-file-utils"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/hellosiyan/$_pkgname/archive/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgname-$pkgver

prepare() {
	cd "$builddir"
	mkdir builddir
}

build() {
	cd "$builddir"
	meson builddir \
		--prefix=/usr \
		--buildtype=plain
	ninja -C builddir
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C builddir install
}

sha512sums="5ba17d7b5ceeffa65b04213f179c1439b09ac44e412e0750dde159b118a714f28d3a290509a402b234e4e7ba5b185fc73eef65d418598f344911e4e2c1373fe5  viewnior-1.7.tar.gz"
